package com.crm.dao.mapper.customMapper.cluePoolManagerCustomMapper;


import com.crm.model.entity.cluePoolManager.ClueContact;
import com.crm.model.vo.cluePoolManager.ClueContactVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ Author ：wll
 */
public interface ClueContactCustomMapper {

    /**
     * @author wll
     * info 查询联系人记录
     */
    List<ClueContactVO> selectClueContactVOs(@Param("clueId")String clueId);

    /**
     * @author wll
     * @date 2021/1/26 16:32
     * info 用户模块-我的线索池-线索清单-跟进-线索联系人回显
     * @param clueId 线索id
     * @param param  为空查询线索全部联系人和手机号 不为空模糊搜索联系人和手机号
     * @return
     */
    List<ClueContactVO> selectClueContacts(@Param("clueId")String clueId, @Param("param")String param);

    /**
     * @author wll
     * info  添加线索联系人 返回主键
     */
    int insertClueContactInfo(@Param("clueContact")ClueContact clueContact);

    /**
     * 用户首页，获取新跟进
     * @param dateStr
     * @param accountId
     * @return
     */
    Long getUserNewClue(@Param("yearMonth") String dateStr, @Param("accountId") String accountId);
}
